package com.yjf.question.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "wx")  //"prefix" 属性用于指定匹配外部配置属性的前缀。
@Data
public class WxConfig {

    private String appid;
    private String secret;
    private String grantType;
    private String url;
}
